package com.demo.apparel.mapper.uniapp;

import com.demo.apparel.entity.TempImage;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface TempImageMapper {

    /**
     * 插入一条临时图片记录
     * created_time 使用数据库的 CURRENT_TIMESTAMP 自动填充
     */
    @Insert("INSERT INTO temp_image (id, url, user_id, created_time) VALUES (#{id}, #{url}, #{userId}, NOW())")
    void insert(TempImage tempImage);


}
